using Microsoft.Practices.ServiceLocation;
using Microsoft.Practices.Unity;
using Sogeti.Guidelines.WCF.Hosting;

namespace Sogeti.Guidelines.Unity.WCF.Hosting
{
    public abstract class UnityContainerProvider : IContainerProvider
    {
        protected UnityContainer UnityContainer = new UnityContainer();

        public virtual IServiceLocator CreateContainer()
        {
            return new UnityServiceLocator(UnityContainer);
        }

        public abstract void EnsureConfiguration();
    }
}